package com.ztgf.shopping.models.service.shop;

import com.baomidou.mybatisplus.service.IService;
import com.ztgf.common.constant.Result;
import com.ztgf.shopping.models.bo.shop.ShopReceiveCardSaveBO;
import com.ztgf.shopping.models.dto.shop.ShopReceiveCardDTO;

import java.math.BigDecimal;

/**
 * 收款账号表服务
 *
 * @author zhanghualang
 * @Date 2020-05-27 14:33:37
 */
public interface IShopReceiveCardService extends IService<ShopReceiveCardDTO> {
    boolean add(ShopReceiveCardSaveBO saveBO);
    boolean add1(ShopReceiveCardSaveBO saveBO);

    boolean updateDefault(Long id);

    ShopReceiveCardDTO getOpenByShopId(Long shopId); //获取开户行信息

    Result activeCard(Long id, BigDecimal money); //激活卡片

    Result activeCardAdmin(Long id, BigDecimal money); //激活卡片

    Result goActiveCard(Long id); //去激活，验证激活次数
    Result goActiveCardAdmin(Long id); //去激活，验证激活次数

    boolean deleteCard(Long id); // 注销卡片
    boolean deleteCardAdmin(Long id); // 注销卡片

    boolean updateBindStatus(Long id);
    boolean updateBindStatusAdmin(Long id);
}
